# 定义i j
# 双重循环 while-while
from tokenize import endpats

# i = 1                           # 初始化变量i为1
# while i <= 9:                  # 循环条件为i小于等于9
#     j = 1                       # 每次循环时初始化变量j为1
#     while(j <= i):              # j的大小由i来控制，当j小于等于i时循环
#         print(f'{i}*{j}={i*j}', end='\t')   # 打印i与j的积及格式化后的字符串，末尾不换行
#         j += 1                  # j自增1，进行下一次循环
#     print('')                   # 一行的j乘以i的结果打印完成，将光标移动到下一行
#     i += 1                      # i自增1，进行下一次循环
#

#
i = 1
while i < 10:
    j = 1
    while j <= i:
        print(f'{i} * {j}= {i * j}', end='\t')
        j += 1
    i += 1
    print('')
